package com.handinglian.system.service;

import com.handinglian.system.entity.RolePermissionRelation;

import java.util.Collection;
import java.util.List;

public interface RolePermissionRelationService {
    int createRolePermission(RolePermissionRelation rolePermissionRelation);

    int createRolePermissionBatch(List<RolePermissionRelation> list);

    int deleteByRoleIdAndPermissionIdIn(Integer roleId, Collection<Integer> permissionIdCollection);

    List<Integer> inquirePermissionIdByRoleId(Integer roleId);

    int deleteByRoleId(Integer roleId);
}
